<!DOCTYPE html>
<html lang="en">
<head>
    <title>{{ title }}</title>
</head>
<body>
<h2>{{ title }}</h2>

{% if ts_agent_list %}
    <h3>Tabu Search</h3>
    <strong>Parameters</strong>
    <br>
    {% if ts_agent_list[0].time_condition %}
        runtime =  {{ ts_agent_list[0].runtime }}
    {% else %}
        iterations =  {{ ts_agent_list[0].iterations }}
    {% endif %}
    <br>
    number of processes = {{ ts_agent_list|length }}<br>
    number of solutions to return per processes = {{ ts_agent_list[0].num_solutions_to_find }}<br>
    tabu list size = {{ ts_agent_list[0].tabu_list_size }}<br>
    neighborhood size = {{ ts_agent_list[0].neighborhood_size }}<br>
    neighborhood wait = {{ ts_agent_list[0].neighborhood_wait }} seconds<br>
    probability of changing an operation's machine = {{ ts_agent_list[0].probability_change_machine }}<br>
    reset threshold = {{ ts_agent_list[0].reset_threshold }} iterations<br>
    <br>
    <strong>Initial Makespan Statistics</strong>
    <br>
    min = {{ ts_initial_makespans_stats.min }}<br>
    median = {{ ts_initial_makespans_stats.median }}<br>
    max = {{ ts_initial_makespans_stats.max }}<br>
    standard deviation = {{ ts_initial_makespans_stats.std }}<br>
    variance = {{ ts_initial_makespans_stats.var }}<br>
    mean = {{ ts_initial_makespans_stats.mean }}<br>
    <br>
    <br>
    <strong>Final Makespan Statistics</strong>
    <br>
    min = {{ ts_result_makespans_stats.min }}<br>
    median = {{ ts_result_makespans_stats.median }}<br>
    max = {{ ts_result_makespans_stats.max }}<br>
    standard deviation = {{ ts_result_makespans_stats.std }}<br>
    variance = {{ ts_result_makespans_stats.var }}<br>
    mean = {{ ts_result_makespans_stats.mean }}<br>
    <br>
    <strong>Iteration Statistics</strong>
    <br>
    min = {{ iterations_per_ts_agent_stats.min }}<br>
    median = {{ iterations_per_ts_agent_stats.median }}<br>
    max = {{ iterations_per_ts_agent_stats.min }}<br>
    standard deviation = {{ iterations_per_ts_agent_stats.std }}<br>
    variance = {{ iterations_per_ts_agent_stats.var }}<br>
    mean = {{ iterations_per_ts_agent_stats.mean }}<br>
    <br>
    <strong>Plots</strong>
    <br>
    <a href="./ts_makespans.html">Makespan vs Iteration</a><br>
    <a href="./neighborhood_sizes.html">Neighborhood Size vs Iteration</a><br>
    <a href="./tabu_list_sizes.html">Tabu Size vs Iteration</a><br>
    <br>
    <strong>Schedule</strong>
    <br>
    <a href="file://{{ output_directory }}/ts_schedule.xlsx">Excel Schedule</a><br>
    <a href="./ts_gantt_chart.html">Gantt Chart</a>
    <br>
{% endif %}

{% if ga_agent and ga_agent.benchmark %}
    <h3>Genetic Algorithm</h3>
    <strong>Parameters</strong>
    <br>
    {% if  ga_agent.time_condition %}
        runtime =  {{ ga_agent.runtime }}
    {% else %}
        generations = {{ ga_agent.iterations }}
    {% endif %}
    <br>
    population size = {{ ga_agent.population_size }}<br>
    selection method = {{ ga_agent.selection_method.__name__ }}<br>
    selection size = {{ ga_agent.selection_size }}<br>
    mutation probability = {{ ga_agent.mutation_probability }}<br>
    <br>
    <strong>Initial Makespan Statistics</strong>
    <br>
    min = {{ ga_initial_makespans_stats.min }}<br>
    median = {{ ga_initial_makespans_stats.median }}<br>
    max = {{ ga_initial_makespans_stats.max }}<br>
    standard deviation = {{ ga_initial_makespans_stats.std }}<br>
    variance = {{ ga_initial_makespans_stats.var }}    <br>
    mean = {{ ga_initial_makespans_stats.mean }}<br>
    <br>
    <strong>Final Makespan Statistics</strong>
    <br>
    min = {{ ga_result_makespans_stats.min }}<br>
    median = {{ ga_result_makespans_stats.median }}<br>
    max = {{ ga_result_makespans_stats.max }}<br>
    standard deviation = {{ ga_result_makespans_stats.std }}<br>
    variance = {{ ga_result_makespans_stats.var }}<br>
    mean = {{ ga_result_makespans_stats.mean }}<br>
    <br>
    <strong>Plots</strong>
    <br>
    <a href="./ga_makespans.html">Makespan vs Iteration</a><br>
    <br>
    <strong>Schedule</strong>
    <br>
    <a href="file://{{ output_directory }}/ga_schedule.xlsx">Excel Schedule</a><br>
    <a href="./ga_gantt_chart.html">Gantt Chart</a>
    <br>
{% endif %}

</body>
</html>

